-- GENERATED SPELL FOR [Boss Galgosh] --


function spell0_1398(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(3019,pUnit)
pUnit:RegisterEvent('Sorts_1398', 15000, 1)
end

function Sorts_1398(pUnit, Event)
local choix_sorts_1398 = math.random(0, 0)
if choix_sorts_1398 == 0 then
pUnit:RegisterEvent('spell0_1398', 1, 1)
end
end

function mob1398_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1398', math.random(1500, 3000), 1)
end

function mob1398_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1398_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1398_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1398, 1, 'mob1398_Action')
RegisterUnitEvent(1398, 2, 'mob1398_Leave')
RegisterUnitEvent(1398, 3, 'mob1398_Kill')
RegisterUnitEvent(1398, 4, 'mob1398_Die')
